package com.onejson.ojmall1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 实体类
 * @Data 需要引入lombok依赖
 * @TableName @TableId 需要引入mybatis-plus依赖
 * @author 微信公众号 onejson
 * @date 2023-08-11 11:24:47
 */
@Data
@TableName("test")
public class TestEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "$column.comment")
    private Integer id;

    @ApiModelProperty(value = "$column.comment")
    @TableField(value = "title")
    private String title;

    @ApiModelProperty(value = "$column.comment")
    @TableField(exist = false)
    private String title2;

}

